﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DownloadFileList.ascx.cs" Inherits="School.Controls.DownloadFileList" %>
<style type="text/css">
    .float_right{ float:right;}
    .float_left{ float:left;}
    .clear{ clear:both;}
    .red{ color:Red;}
    .itemTitle{ height:30px; background-color:#F2F6F7; border-bottom:solid 1px #D6DDE3; line-height:30px; padding-left:10px; color:#0054A6; font-size:14px; font-weight:bold; margin-top:15px;}
    .itemRemark{color:#999999; padding:10px;}
    .itemInfo{ padding-left:10px;}
    .item_container ul li{ float:left; list-style:none; color:#555555; margin-right:10px;}
    .item_container .sep{ width:1px; background-color:#A755A7; height:12px; margin-top:1px;}
    .downloadBtn{ margin:7px 10px 0 0;}
    .itemInfo a:link{ text-decoration:none;}
    .itemInfo a:visited{text-decoration:none;}
    .itemInfo a:hover{text-decoration:underline;}
    .itemInfo a:active{text-decoration:underline;}
        
</style>
<div class="item_container">
<asp:Repeater ID="rep_DownloadFileItem" runat="server" 
    onitemcommand="rep_DownloadFileItem_ItemCommand">
    <ItemTemplate>
        <div class="itemTitle">
            <div class="float_left"><%#Eval("Title") %></div>
            <div class="float_right downloadBtn"><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/downbtn.gif" ToolTip="点击下载" CommandName="Download" CommandArgument='<%#Eval("FID")+","+Eval("FIilePath") %>' /></div>
        </div>
        <div class="itemRemark"><%#Eval("Remark") %></div>
        <div class="itemInfo">
            <ul>
                <li>文件大小：<%#FileSizeConvert(long.Parse(Eval("FileSize").ToString()))%></li>
                <li class="sep"></li>
                <li>文件类型：<%#Eval("ExtendName") %></li>
                <li class="sep"></li>
                <li>发布时间：<span class="red"><%#Eval("UploadTime","{0:d}") %></span></li>
                <li class="sep"></li>
                <li>附：<asp:LinkButton ID="LinkButton1" runat="server" CommandName="Download" CommandArgument='<%#Eval("FID")+","+Eval("AttachmentFilePath") %>'><%#Eval("AttachmentTitle")%></asp:LinkButton></li>
                <li class="sep"></li>
                <li>下载次数：<%#Eval("Hits") %></li>
            </ul>
        </div>
        <div class="clear"></div>                        
    </ItemTemplate>
</asp:Repeater>
</div>